<?php  
    ob_start();
    try{
        
        $file=fopen("setting.txt","w");
        $fileFB=fopen("facebook.txt","w");
        $fileTW=fopen("twitter.txt","w");
        $fileGO=fopen("google.txt","w");
        
      
        fwrite($file, $_POST['proxy']);
        fwrite($fileFB, $_POST['id_appFB']);
        fwrite($fileTW, $_POST['id_keyTW'].";".$_POST['id_secretTW']);
        fwrite($fileGO, $_POST['id_keyGO'].";".$_POST['id_secretGO']);
        fclose($file);
        fclose($fileFB);
        fclose($fileTW);
        fclose($fileGO);
        
        ?>
<script>$myjquery('#message').html("Change Succesfuly!");</script>

        <?php
        
    }catch(Exception $e){
        
        echo"Write error";
        
    }
    
?>
